Skip to content

Conversation

chriskozlowski
Copy link

Works for our use but did not fully test. Had to add the false argument to const_defined? in class_methods.rb or else the geokit_finder_adapter method would not load the new adapter. Not sure if that was an issue for other adapters or just the new one.

Add trilogy adapter

Revert "Add trilogy adapter"

This reverts commit 767b56e.
def geokit_finder_adapter
@geokit_finder_adapter ||= begin
unless Adapters.const_defined?(connection.adapter_name.camelcase)
unless Adapters.const_defined?(connection.adapter_name.camelcase, false)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [109/80]

class Trilogy < MySQL
end
end
end No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/TrailingBlankLines: Final newline missing.

@@ -0,0 +1,8 @@
require 'geokit-rails/adapters/mysql'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.

@hernan
Copy link

hernan commented Feb 15, 2025

Any chance to merge this fixing the linter issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants